﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreShop.Model.FromBody
{
    /// <summary>
    /// 新增商品实体
    /// </summary>
    public class GsAddProductPdtInfoModel
    {
        /// <summary>
        /// 条码
        /// </summary>
        public string spuCode { get; set; }
        /// <summary>
        /// 编码
        /// </summary>

        public string spuBarcode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>

        public string spuName { get; set; }
        /// <summary>
        /// 分类id
        /// </summary>

        public string itemSortId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string itemSortName { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string uomId { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string uomName { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal saPrice { get; set; }
        /// <summary>
        /// 会员价
        /// </summary>
        public decimal vipPrice { get; set; }
        /// <summary>
        /// 会员价
        /// </summary>
        public decimal vvipPrice { get; set; }
        /// <summary>
        /// 进货价
        /// </summary>
        public decimal poPrice { get; set; }
        /// <summary>
        /// 售价4
        /// </summary>
        public decimal commPrice { get; set; }

        /// <summary>
        /// 是否称重 0是 1 否
        /// </summary>
        public int stand { get; set; }

        public string itemSortCode { get; set; } = "";
        /// <summary>
        /// 规格名称
        /// </summary>
        public string specName { get; set; } = "";

        /// <summary>
        /// 商品类型 1 标准 2 组合 3 分级 4 原料  5 包材 6 虚拟
        /// </summary>
        public int spuTypeId { get; set; } = 1;
    }

    /// <summary>
    /// 获取标品类型
    /// </summary>
    public class ProductPdtStandderSpuInfo 
    {
        /// <summary>
        /// id
        /// </summary>
        public string standerSpuId { get; set; }
        /// <summary>
        /// 商品条码
        /// </summary>
        public string spuBarcode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string spuName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string specName { get; set; }
        /// <summary>
        /// 基本单位
        /// </summary>
        public string uomId { get; set; }
        /// <summary>
        /// 基本单位
        /// </summary>
        public string uomName { get; set; }
        /// <summary>
        /// 零售价
        /// </summary>
        public decimal saPrice { get; set; }
        /// <summary>
        /// 进货价
        /// </summary>
        public decimal poPrice { get; set; }
    }
}
